package com.tegtech.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 返回状态码枚举
 * @author Jun
 * @date 2020年4月5日 上午3:33:23
 */
@Getter
@AllArgsConstructor
public enum HttpStatus implements IHttpStatus {

	//-------1000-1999为请求层面异常-------//
	SUCCESS(1000, "http.success"),

	ERROR(1001, "http.error"),

	UNAUTHORIZED(1002, "http.unauthorized"),
	
	AUTHORIZED_FAILURE(1003, "http.authorized_failure"),
	
	AUTHORIZED_EXPIRE(1004, "http.authorized_expire"),
	
	FORBIDDEN(1005, "http.forbidden"),
	
	NOT_FOUND(1006, "http.not_found"),
	
	NO_HEADER(1007, "http.no_header"),
	
	REQUEST_EXPIRE(1008, "http.request_expire"),
	
	REQUEST_REQEAT(1009, "http.request_reqeat"),
	
	SIGN_INVALID(1010, "http.sign_invalid"),
	
	//-------2000为请求参数异常-------//
	PARAM_INVALID(2000, "http.param.invalid");
	
	private final Integer code;

	private final String message;

}
